FROM python:3.7
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY pip.conf /root/.pip/pip.conf
#COPY mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl /usr/src/app/
#RUN pip install -r /usr/src/app/mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl
#RUN pip install -i https://pypi.douban.com/simple/ mysqlclient
COPY requirements.txt /usr/src/app/
RUN pip install -r /usr/src/app/requirements.txt
RUN rm -rf /usr/src/app
COPY . /usr/src/app
CMD [ "python", "./manage.py", "runserver", "0.0.0.0:8080"]